package com.auxgroup.hr.front.commons.exception;

import com.auxgroup.hr.front.commons.BaseRetCode;


/**
 * 前置异常
 *
 */
public class FrontException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private FrontExceptionData data; 
	

	/**
	 * 
	 */
	public FrontException(FrontExceptionData data) {
		super();
		this.data=data;
	}
	public FrontException(BaseRetCode retCode){
		this(new FrontExceptionData(retCode));
	}
	public FrontException(BaseRetCode retCode,String extMsg){
		this(new FrontExceptionData(retCode,extMsg));
	}
	/**
	 * @param message
	 * @param cause
	 */
	public FrontException(String message, Throwable cause,FrontExceptionData data) {
		super(message, cause);
		this.data=data;
	}

	/**
	 * @param message
	 */
	public FrontException(String message,FrontExceptionData data) {
		super(message);
		this.data=data;
	}

	/**
	 * @param cause
	 */
	public FrontException(Throwable cause,FrontExceptionData data) {
		super(cause);
		this.data=data;
	}
	/**
	 * @param cause
	 */
	public FrontException(Throwable cause,BaseRetCode retCode) {
		super(cause);
		this.data = new FrontExceptionData(retCode);
	}
	/**
	 * @param message
	 * @param cause
	 */
	public FrontException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * @param message
	 */
	public FrontException(String message) {
		super(message);
	}

	/**
	 * @param cause
	 */
	public FrontException(Throwable cause) {
		super(cause);
	}

	public FrontExceptionData getData() {
		return data;
	}

	
	
	

}
